package com.rest.demo.concurrent;

/**
 * @author Administrator
 * @decription
 * @Date 2018-01-31 15:01
 */
public class TwoRunDemo {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("runnable创建的线程执行了");
            }
        }) {
            @Override
            public void run() {
                System.out.println("thread创建的线程执行了");
            }
        }.start();
    }
}
